import Vue from "vue"
import Router from "vue-router"

Vue.use(Router)

const routes = [
  {
    path: '',
    redirect: '/login'
  },
  {
    path: '/login',
    component: () => import("../views/Login.vue")
  },
  {
    path: '/function',
    component: () => import("../views/Function.vue"),
    children: [
      {
        path: 'user',
        component: () => import("../components/system/User.vue")
      },
      {
        path: 'init',
        component: () => import("../components/system/Init.vue")
      },
      {
        path: 'config',
        component: () => import("../components/system/Config.vue")
      },
      {
        path: 'zydmwh',
        component: () => import("../components/system/maintenance/Major.vue")
      },
      {
        path: 'cjxxwh',
        component: () => import("../components/system/maintenance/Achievement.vue")
      },
      {
        path: 'xxdcpz',
        component: () => import("../components/system/maintenance/Info.vue")
      },
      {
        path: 'sfxxwh',
        component: () => import("../components/system/maintenance/Province.vue")
      },
      {
        path: 'jhlbwh',
        component: () => import("../components/system/maintenance/PlanType.vue")
      },
      {
        path: 'jhsc',
        component: () => import("../components/plan/PlanCreate.vue")
      },
      {
        path: 'jhzxtz',
        component: () => import("../components/plan/PlanUpdate.vue")
      },
      {
        path: 'czjl',
        component: () => import("../components/plan/OperationLog.vue")
      },
      {
        path: 'jhzxqkcx',
        component: () => import("../components/plan/PlanQuery.vue")
      },
      {
        path: 'zsjhzxqk',
        component: () => import("../components/plan/Execute.vue")
      },
      {
        path: 'lnzsjhcx',
        component: () => import("../components/plan/PastPlan.vue")
      },
      {
        path: 'card',
        component: () => import("../components/card/Card.vue")
      },
      {
        path: 'notice',
        component: () => import("../components/print/Notice.vue")
      },
      {
        path: 'ems',
        component: () => import("../components/print/EMS.vue")
      },
      {
        path: 'preparation',
        component: () => import("../components/print/Preparation.vue")
      },
      {
        path: 'zssjmlsc',
        component: () => import("../components/enroll/Zssj.vue")
      },
      {
        path: 'gsgljhlqzt',
        component: () => import("../components/enroll/Gsgl.vue")
      },
      {
        path: 'cglqxxdr',
        component: () => import("../components/enroll/Cglq.vue")
      },
      {
        path: 'kszpdr',
        component: () => import("../components/enroll/Kszpdr.vue")
      },
      {
        path: 'kszpxxcx',
        component: () => import("../components/enroll/Kszpxx.vue")
      },
      {
        path: 'lqlbbg',
        component: () => import("../components/enroll/Lqlb.vue")
      },
      {
        path: 'ykrxsjdr',
        component: () => import("../components/enroll/Ykrx.vue")
      },
      {
        path: 'mkm',
        component: () => import("../components/enroll/Mkm.vue")
      },
      {
        path: 'bss',
        component: () => import("../components/enroll/Bss.vue")
      },
      {
        path: 'gatbss',
        component: () => import("../components/enroll/Gatbss.vue")
      },
      {
        path: 'gatlqxxdr',
        component: () => import("../components/enroll/Gatlqxx.vue")
      },
      {
        path: 'gspydy',
        component: () => import("../components/enroll/Gspydy.vue")
      },
      {
        path: 'sjdrqkcx',
        component: () => import("../components/enroll/Sjdr.vue")
      },
      {
        path: 'zpdrqkcx',
        component: () => import("../components/enroll/Zpdr.vue")
      },
      {
        path: 'lqksxxdc',
        component: () => import("../components/enroll/Lqks.vue")
      },
      {
        path: 'fbxxmb',
        component: () => import("../components/division/Fbxx.vue")
      },
      {
        path: 'sdfb',
        component: () => import("../components/division/Sdfb.vue")
      },
      {
        path: 'zdfb',
        component: () => import("../components/division/Zdfb.vue")
      },
      {
        path: 'fbqk',
        component: () => import("../components/division/Fbqk.vue")
      },
      {
        path: 'xsmc',
        component: () => import("../components/division/Xsmc.vue")
      },
      {
        path: 'xszp',
        component: () => import("../components/division/Xszp.vue")
      },
    ]
  }
]

const router = new Router({
  routes,
  // mode: 'history'
})

export default router